package com.xjrh.traintravel.collector.netty.command.check;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;
import java.util.Date;

/**
 * 自检模式-上报数据
 *
 * @author snps
 * @create 2022-02-07 13:47
 * @describe
 **/
public class CheckData extends BaseCommand implements Serializable {

    private static final long serialVersionUID = -32940914941166368L;


    /**
     * 设备类型
     *      1：I型前置
     *      2：II型前置
     */
    private int type;

    /**
     * 软件版本
     */
    private String softwareVersion;

    /**
     * 硬件版本
     */
    private String hardwareVersion;

    /**
     * 时标（HHMMSS)
     */
    private String time;

    /**
     * 485-速度通信状态
     *      1: 正常
     *      2: 异常
     */
    private int speedState;

    /**
     * 485-前置1通信状态
     *      1: 正常
     *      2: 异常
     */
    private int front1State;

    /**
     * 485-前置2通信状态
     *      1: 正常
     *      2: 异常
     */
    private int front2State;

    /**
     * 485-前置3通信状态
     *      1: 正常
     *      2: 异常
     */
    private int front3State;

    /**
     * 485-前置4通信状态
     *      1: 正常
     *      2: 异常
     */
    private int front4State;

    /**
     * MVB数据
     *      1: 正常
     *      2: 异常
     */
    private int mvbState;

    /**
     * 速度实时检测值（秒）
     *      单位: MB
     */
    private int speedValue;

    /**
     * 存储1-状态
     *      1: 正常
     *      2: 异常
     */
    private int storage1State;

    /**
     * 存储1-总空间
     */
    private int storage1Space;

    /**
     * 存储1-剩余空间
     */
    private int storage1Surplus;

    /**
     * 存储2-状态
     *      1: 正常
     *      2: 异常
     */
    private int storage2State;

    /**
     * 存储2-空间
     */
    private int storage2Space;

    /**
     * 存储2-剩余空间
     */
    private int storage2Surplus;

    /**
     * DSP通信状态
     *      1: 正常
     *      2: 异常
     */
    private int dspState;

    /**
     * 创建时间
     */
    private Date createTime;

    /*****************************************
     * Getter and Setter
     */
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getSoftwareVersion() {
        return softwareVersion;
    }

    public void setSoftwareVersion(String softwareVersion) {
        this.softwareVersion = softwareVersion;
    }

    public String getHardwareVersion() {
        return hardwareVersion;
    }

    public void setHardwareVersion(String hardwareVersion) {
        this.hardwareVersion = hardwareVersion;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getSpeedState() {
        return speedState;
    }

    public void setSpeedState(int speedState) {
        this.speedState = speedState;
    }

    public int getFront1State() {
        return front1State;
    }

    public void setFront1State(int front1State) {
        this.front1State = front1State;
    }

    public int getFront2State() {
        return front2State;
    }

    public void setFront2State(int front2State) {
        this.front2State = front2State;
    }

    public int getFront3State() {
        return front3State;
    }

    public void setFront3State(int front3State) {
        this.front3State = front3State;
    }

    public int getFront4State() {
        return front4State;
    }

    public void setFront4State(int front4State) {
        this.front4State = front4State;
    }

    public int getMvbState() {
        return mvbState;
    }

    public void setMvbState(int mvbState) {
        this.mvbState = mvbState;
    }

    public int getSpeedValue() {
        return speedValue;
    }

    public void setSpeedValue(int speedValue) {
        this.speedValue = speedValue;
    }

    public int getStorage1State() {
        return storage1State;
    }

    public void setStorage1State(int storage1State) {
        this.storage1State = storage1State;
    }

    public int getStorage1Space() {
        return storage1Space;
    }

    public void setStorage1Space(int storage1Space) {
        this.storage1Space = storage1Space;
    }

    public int getStorage1Surplus() {
        return storage1Surplus;
    }

    public void setStorage1Surplus(int storage1Surplus) {
        this.storage1Surplus = storage1Surplus;
    }

    public int getStorage2State() {
        return storage2State;
    }

    public void setStorage2State(int storage2State) {
        this.storage2State = storage2State;
    }

    public int getStorage2Space() {
        return storage2Space;
    }

    public void setStorage2Space(int storage2Space) {
        this.storage2Space = storage2Space;
    }

    public int getStorage2Surplus() {
        return storage2Surplus;
    }

    public void setStorage2Surplus(int storage2Surplus) {
        this.storage2Surplus = storage2Surplus;
    }

    public int getDspState() {
        return dspState;
    }

    public void setDspState(int dspState) {
        this.dspState = dspState;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "CheckData{" +
                "type=" + type +
                ", softwareVersion='" + softwareVersion + '\'' +
                ", hardwareVersion='" + hardwareVersion + '\'' +
                ", time='" + time + '\'' +
                ", speedState=" + speedState +
                ", front1State=" + front1State +
                ", front2State=" + front2State +
                ", front3State=" + front3State +
                ", front4State=" + front4State +
                ", mvbState=" + mvbState +
                ", speedValue=" + speedValue +
                ", storage1State=" + storage1State +
                ", storage1Space=" + storage1Space +
                ", storage1Surplus=" + storage1Surplus +
                ", storage2State=" + storage2State +
                ", storage2Space=" + storage2Space +
                ", storage2Surplus=" + storage2Surplus +
                ", dspState=" + dspState +
                ", createTime=" + createTime +
                '}';
    }

}